-define(IM_POOL, im_db).
-define(record_field(Table), record_info(fields, Table)).


-record(mysql_business, {
  business_id     :: integer(),
  appkey          :: string() | binary(),
  business_name   :: string() | binary(),
  admin           :: string() | binary(),
  password        :: string() | binary(),
  secretkey       :: string() | binary(),
  createtime      :: string() | binary(),
  email    = ""   :: string() | binary(),
  phone    = ""   :: string() | binary(),
  qq       = ""   :: string() | binary(),
  nickname = ""   :: string() | binary(),
  address  = ""   :: string() | binary(),
  ip
}).


-record(mysql_friendlist, {
    friendlist_id,
    user_id,
    friend_id
    }).

-record(mysql_group, {
    group_id,
    topic,
    group_name,
    createtime,
    create_id
    }).

-record(pre_ucenter_members,{
    uid,
    username,
    password,
    email,
    myid,
    myidkey,
    regip,
    regdate,
    lastloginip,
    lastlogintime,
    salt,
    secques
  }).

-record(pre_common_member,{
    pre_etucenter_members_id,
    email,
    username,
    password,
    status = 0,
    emailstatus = 0,
    avatarstatus = 0,
    videophotostatus = 0,
    adminid = 0,
    groupid = 10,
    groupexpiry = 0,
    extgroupids = "",
    regdate,
    credits = 0,
    notifysound = 0,
    timeoffset = 9999,
    newpm = 0,
    newprompt = 0,
    accessmasks = 0,
    allowadmincp = 0,
    onlyacceptfriendpm = 0,
    conisbind = 0,
    freeze = 0
  }).
